#pragma once
#include "Camera.h"
#define  PI 3.14159265358979
class PerspectiveCamera :
	public Camera
{
public:
	PerspectiveCamera();
	~PerspectiveCamera();

public:
	float FieldOfView;
	float Near;
	float Far;
	D3DXVECTOR3 Target;
	D3DXVECTOR3 upVector;
	double Distance()
	{
		D3DXVECTOR3 look = Target - position;
		return D3DXVec3Length(&look);
	}
	virtual void TransformProjectionMatrix(LPDIRECT3DDEVICE9 device);

	void RotateRay(float angle, D3DXVECTOR3 vOrigin, D3DXVECTOR3 vAxis);
	
	void Zoom(int Delta);
	
};

